function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {

		_01_over = newImage("images/nav/01_hover.jpg");
		_02_over = newImage("images/nav/02_hover.jpg");
		_03_over = newImage("images/nav/03_hover.jpg");
		_04_over = newImage("images/nav/04_hover.jpg");
		_05_over = newImage("images/nav/05_hover.jpg");
		_06_over = newImage("images/nav/06_hover.jpg");
		_07_over = newImage("images/nav/07_hover.jpg");
		_08_over = newImage("images/nav/08_hover.jpg");
		_09_over = newImage("images/nav/09_hover.jpg");
		_10_over = newImage("images/nav/10_hover.jpg");
		_11_over = newImage("images/nav/11_hover.jpg");
		_12_over = newImage("images/nav/12_hover.jpg");
		_13_over = newImage("images/nav/13_hover.jpg");
		preloadFlag = true;
	}
}

/*
function winnews(img){

	var leftPos = (screen.availWidth-700) / 2;
	var topPos = (screen.availHeight-500) / 2;
	s=window.open('','big_img','width=400,height=400,scrollbars=yes,resizable=no,titlebar=1,menubar=no,status=no,top=' + topPos + ',left=' + leftPos);
	s.location.href=img;
}*/